/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Task2;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Patrick Füssinger
 * ITB5_2
 * Enterprise Applications
 * Exercise 1
 * bis 13.11.2011
 */

public class RmiSquare extends UnicastRemoteObject implements iCalculate{

    public RmiSquare() throws RemoteException {
        super(); //invoke rmi linking and remote object initialization
    }

    @Override
    public int square(int x) throws RemoteException {
        return(x * x);
    }
    
}
